﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;



namespace BSInstraAPI.Models
{
    public class Token
    {

        static public bool Check(string token)
        {
            if (token=="2C40EE8F-7B54-40ca-ACBA-239A5BD0A79F")
            {
                return true;
            }
            else
            {
                throw new HttpResponseException(new HttpResponseMessage(HttpStatusCode.Unauthorized));
            }
            //后续完善令牌库管理:token、模块、使用人、申请原因、有效期、AllowGET\AllowPut\AllowPost\AllowDelete
        }


    }
}